import request from '@/utils/request'

// 查询智能制造（库存商品）列表
export function listFactory_intelligent_manufacture_stock(query) {
  return request({
    url: '/factory_data_upload/factory_intelligent_manufacture_stock/list',
    method: 'get',
    params: query
  })
}

// 查询智能制造（库存商品）详细
export function getFactory_intelligent_manufacture_stock(commodityId) {
  return request({
    url: '/factory_data_upload/factory_intelligent_manufacture_stock/' + commodityId,
    method: 'get'
  })
}

// 新增智能制造（库存商品）
export function addFactory_intelligent_manufacture_stock(data) {
  return request({
    url: '/factory_data_upload/factory_intelligent_manufacture_stock',
    method: 'post',
    data: data
  })
}

// 修改智能制造（库存商品）
export function updateFactory_intelligent_manufacture_stock(data) {
  return request({
    url: '/factory_data_upload/factory_intelligent_manufacture_stock',
    method: 'put',
    data: data
  })
}

// 删除智能制造（库存商品）
export function delFactory_intelligent_manufacture_stock(commodityId) {
  return request({
    url: '/factory_data_upload/factory_intelligent_manufacture_stock/' + commodityId,
    method: 'delete'
  })
}
